﻿@model CMSMVC4.Areas.Main.Models.FeedBackModel
<script language="javascript" type="text/javascript">
    $(function () {
        $('#showmess').click(function () {
            $('#showmess').slideToggle();
        });
    });

    function showmess() {
        $('#showmess'). slideToggle().delay(6000).slideToggle();
    }

    function sending() {
        $('#showmess').html("Đang Gửi...");
        $('#showmess').slideToggle();
    }
</script>
@using (Ajax.BeginForm("FormLienHe", "LienHe", new AjaxOptions() { HttpMethod = "Post", UpdateTargetId = "load_feedback", OnSuccess = "showmess()", OnBegin = "sending()" }))
{
    <div id="showmess" style="padding: 10px; border: 1px solid #D3D3D3; position: absolute; bottom: 0px; right: 100px; background-color: #FFFFFF; color: #FF3300; cursor: pointer; display: none; z-index: 50;">
        @Html.ValidationSummary()
    </div>
    <div class="lenhe_contact_form">
        <table width="100%" border="0" cellspacing="0" cellpadding="10">
            <tr>
                <td align="right" valign="top">
                    @Html.LabelFor(x => x.name)
                </td>
                <td align="center">
                    <input name="name" value="@Model.name" type="text" class = "lenhe_contact_form_text"/>
                    @*@Html.TextBoxFor(x => x.name, new { @class = "lenhe_contact_form_text" })*@
                </td>
            </tr>
            <tr>
                <td align="right" valign="top">
                    @Html.LabelFor(x => x.email)
                </td>
                <td align="center">
                    <input name="email" value="@Model.email" type="text" class = "lenhe_contact_form_text" />
                    @*@Html.TextBoxFor(x => x.email, new { @class = "lenhe_contact_form_text" })*@
                </td>
            </tr>
            <tr>
                <td align="right" valign="top">
                    @Html.LabelFor(x => x.phone)
                </td>
                <td align="center">
                    <input name="phone" value="@Model.phone" type="text" class = "lenhe_contact_form_text"/>
                    @*@Html.TextBoxFor(x => x.phone, new { @class = "lenhe_contact_form_text" })*@
                </td>
            </tr>
            <tr>
                <td align="right" valign="top">
                    @Html.LabelFor(x => x.data)
                </td>
                <td align="center">
                    <textarea name="data" class = "lenhe_contact_form_textarea">@Model.data</textarea>
                    @*@Html.TextAreaFor(x => x.data, new { @class = "lenhe_contact_form_textarea" })*@
                </td>
            </tr>
        </table>
    </div>
    <div align="right" class=".lenhe_sendcomment_submit">
        <input class="lienhe_sendcomment" name="" type="submit" value=@CMSMVC4.MultiResource.Resource.FeedBack_Submit /></div>
}
